// 组合redux子模块+导出store实例
import userReducer from "./modules/user";
import { configureStore } from "@reduxjs/toolkit";

const store = configureStore({
    reducer: {
        // 注册子模块
        user: userReducer
    }
})

export default store